import request from '@/utils/request'

// 查询服务管理列表
export function listDetail(query) {
  return request({
    url: '/carService/detail/list',
    method: 'get',
    params: query
  })
}

// 查询服务管理详细
export function getDetail(detailId) {
  return request({
    url: '/carService/detail/' + detailId,
    method: 'get'
  })
}

// 新增服务管理
export function addDetail(data) {
  return request({
    url: '/carService/detail',
    method: 'post',
    data: data
  })
}

// 修改服务管理
export function updateDetail(data) {
  return request({
    url: '/carService/detail',
    method: 'put',
    data: data
  })
}

// 删除服务管理
export function delDetail(detailId) {
  return request({
    url: '/carService/detail/' + detailId,
    method: 'delete'
  })
}


//服务类别
export function serviceTypeList() {
  return request({
    url: '/carService/detail/serviceTypeList',
    method: 'get'
  })
}

export function merchantList() {
  return request({
    url: '/carService/detail/merchantList',
    method: 'get'
  })
}
